<?php
    require_once(dirname(__FILE__)."/main.php");

    function connect() {
        $db = new mysqli(DB_HOST, DB_USER, DB_CODE, DB_NAME);
        if ($db->connect_errno) {
            die("Could not connect do Database: ".$db->connect_errno);
        }
        return $db;
    }
?>
